package com.yjt.gcss.gddw.common.bean.domain;

/**
 * AbstractBtOrganization entity provides the base persistence definition of the
 * BtOrganization entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractBtOrganization implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String orgId;
	private String orgName;
	private String postCode;
	private String areaId;
	private String address;
	private String orgTel;
	private String dwbm;
	private String parentDwbm;
	private String dwmc;
	private String accNo;

	// Constructors

	/** default constructor */
	public AbstractBtOrganization() {
	}

	/** minimal constructor */
	public AbstractBtOrganization(String orgId, String orgName, String areaId, String address, String dwbm,
			String parentDwbm, String accNo) {
		this.orgId=orgId;
		this.orgName = orgName;
		this.areaId=areaId;
		this.address=address;
		this.dwbm = dwbm;
		this.parentDwbm = parentDwbm;
		this.accNo=accNo;
	}

	/** full constructor */
	public AbstractBtOrganization(String orgId, String orgName, String postCode,
			String areaId, String address, String orgTel, String dwbm,
			String parentDwbm, String dwmc, String accNo) {
		this.orgId=orgId;
		this.orgName = orgName;
		this.postCode = postCode;
		this.areaId = areaId;
		this.address = address;
		this.orgTel = orgTel;
		this.dwbm = dwbm;
		this.parentDwbm = parentDwbm;
		this.dwmc = dwmc;
		this.accNo=accNo;
	}

	// Property accessors

	public String getOrgId() {
		return this.orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getOrgName() {
		return this.orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getPostCode() {
		return this.postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public String getAreaId() {
		return this.areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getOrgTel() {
		return this.orgTel;
	}

	public void setOrgTel(String orgTel) {
		this.orgTel = orgTel;
	}

	public String getDwbm() {
		return this.dwbm;
	}

	public void setDwbm(String dwbm) {
		this.dwbm = dwbm;
	}

	public String getParentDwbm() {
		return this.parentDwbm;
	}

	public void setParentDwbm(String parentDwbm) {
		this.parentDwbm = parentDwbm;
	}

	public String getDwmc() {
		return this.dwmc;
	}

	public void setDwmc(String dwmc) {
		this.dwmc = dwmc;
	}

	/**
	 * @return the accNo
	 */
	public String getAccNo() {
		return accNo;
	}

	/**
	 * @param accNo the accNo to set
	 */
	public void setAccNo(String accNo) {
		this.accNo = accNo;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((dwbm == null) ? 0 : dwbm.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AbstractBtOrganization other = (AbstractBtOrganization) obj;
		if (dwbm == null) {
			if (other.dwbm != null)
				return false;
		} else if (!dwbm.equals(other.dwbm))
			return false;
		return true;
	}

	
}